import http from '../utils/http.js';

export function getCartList() {
  return http.get('/user/shoppingCart/list')
}
export function addShoppingCart(data) {
  return http.post('/user/shoppingCart/add', data)
}
export function clearShoppingCart() {
  return http.delete('/user/shoppingCart/clear')
}
export function reduceById(id){
  return http.post(`/user/shoppingCart/reduceById/${id}`)
}
export function addById(id){
  return http.post(`/user/shoppingCart/addById/${id}`)
}
export function reduceByDishId(dishId){
  return http.post(`/user/shoppingCart/reduceByDishId/${dishId}`)
}
export function reduceBySetmealId(setmealId){
  return http.post(`/user/shoppingCart/reduceBySetmealId/${setmealId}`)
}